import tornado.web
import json
from src.ucloud.ufile_log_list import read_log_list


class ApiHomeHandler(tornado.web.RequestHandler):

    def get(self, *args, **kwargs):
        log_list = read_log_list()
        resp = {'code': 0, 'data': log_list}
        self.write(json.dumps(resp, ensure_ascii=False))

    def post(self, *args, **kwargs):
        pass
